//
//  BK_My_CupVC.m
//  bestkeep
//
//  Created by TOPTEAM on 2017/2/9.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import "BK_My_CupVC.h"
#import "BKSlideView.h"
#import "BKMyCommon.h"
@interface BK_My_CupVC ()
@property (nonatomic,strong)BKSlideView *segmentedView;
@end

@implementation BK_My_CupVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createUI];
    
}
-(void)createUI{
    if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
        self.extendedLayoutIncludesOpaqueBars = NO;
        self.modalPresentationCapturesStatusBarAppearance = NO;
        self.navigationController.navigationBar.clipsToBounds = NO;
    }

    self.view.backgroundColor=RGBCOLOR(242, 242, 242, 1);;
    [self createSlide];
    
}

#pragma mark ================================创建Slide
-(void)createSlide{
    
    self.title = @"我的优惠券";
    NSArray *array = [NSArray arrayWithObjects:@"可使用",@"已失效",nil];
    _segmentedView = [BKSlideView segmentControlViewWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight-64)];

    _segmentedView.normalColor = RGBCOLOR(178, 178, 178, 1);
    _segmentedView.selectedColor = RGBCOLOR(64, 64, 64, 1);
    

    _segmentedView.titleArray = array;
    _segmentedView.selectedTitleArray = array;
    [self.view addSubview:_segmentedView];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end



















